<%@page import="java.io.*"%><%

	String filepath=request.getParameter("a");
	String filename=request.getParameter("b");
	String filenameurl = filename;
	filepath=new String(filepath.getBytes("8859_1"),"GBK");
	filename=new String(filename.getBytes("8859_1"),"GBK");
	String downloadname=filename; // newString(filename.getBytes("GBK"),"iso8859_1");
	
	response.setContentType("APPLICATION/OCTET-STREAM");
	response.setHeader("Content-Disposition","attachment;filename=\""+filenameurl+"\"");
	
	java.io.FileInputStream fileInputStream=new java.io.FileInputStream(filepath+"/"+filename);
	int i;
	while((i=fileInputStream.read())!=-1){
		out.write(i);
	}
	fileInputStream.close();
	out.close();
%>